<div class="block">
    <h4 class="vatlytrilieu"><a href="<?=$this->baseUrl("/")?>">Home</a> &gt;Registry</h4>
    <div class="block_content">
        <?php if($this->er_string=="" && isset($this->er_string)){?>
        <div class="dialog" title="Registering is successful!" style="display: none;"></div>
        <script>
        $(function(){
            $(".dialog").dialog({
                autoOpen: true,
                modal: true,
                buttons:{
                    "Go to home": function(){
                        window.location = "<?=$this->baseUrl("/")?>";
                    },
                    "Review": function(){
                        $(this).dialog("close");
                    }
                }
            })
        })
        </script>
        <?php }else{?>
        <script>
        $(function(){
            $("#<?=$this->er_key?>").parent("dd")
                                     .append("<ul class='errors'><li><?=$this->er_string?></li></ul>");
        })
        </script>
        <?php }?>
        <div class="info-frame">
            <?=$this->form?>
            </div>
    </div>
</div>  
  
    